<%@ page import="com.qipay.baas.model.Peizhi" %>
<%@ taglib prefix="page" uri="http://com.qipay/pagelib" %>
<%@ page language="java" contentType="text/html;charset=utf-8" %>
<!doctype html>
<html>
<head>
    <jsp:include page="head.jsp"></jsp:include>
    <title>系统设置</title>
    <link rel="stylesheet" href="<%= request.getAttribute("StaticHost") %>/css/dataTables.bootstrap.min.css">
    <%
        Peizhi peizhi = (Peizhi) request.getAttribute("peizhi");
    %>
</head>
<body class="devpreview hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <jsp:include page="nav.jsp"></jsp:include>
    <jsp:include page="left.jsp"></jsp:include>
    <div class="content-wrapper">
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box border">
                        <form method="post" action="<%=request.getContextPath()%>/sys/saveSet" enctype="multipart/form-data">
                        <div class="form-group"><label >网站名称</label>
                            <input name="webName" type="text" class="form-control"  value="<%=peizhi.getWebName()%>"
                                   placeholder="&nbsp;请填写网站名称">
                        </div>
                        <div class="form-group"><label >网站LOGO</label>
                            <img id="imgIcon1"
                                 class="img-polaroid"
                                 src="" width="140"
                            />
                            <input name="file" type="file" class="form-control" id="doc-ipt-file-1"
                                   placeholder="logo"
                                   onchange="PostImg2(this,'imgIcon1')">
                        </div>
                        <div class="form-group" hidden>
                            <label >公告内容</label>
                            <textarea name="content" class="form-control" style="height:100px;resize: none" placeholder="请输入公告内容"><%=peizhi.getContent()%></textarea>
                        </div>
                        <div class="box-footer">
                            <button type="button" class="btn btn-primary btn-sm borderNone"
                                    onclick="window.history.back()">返回</button>
                            <button type="submit"  class="btn btn-success btn-sm borderNone">保存</button>
                        </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
</div>
<script src="<%= request.getAttribute("StaticHost") %>/js/adminlte.min.js"></script>
</body>
</html>

